package com.gxaedu.rbac.mapper;

import com.gxaedu.rbac.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author:Teacher黄
 * @date:Created at 2020/04/21
 */
@Mapper
public interface UserRoleMapper {


    /**
     * 通过用户的id去查询角色
     * @param userId
     * @return
     */
    List<Role> findRolesByUserId(@Param("userId") Long userId);


}
